package com.lhg.file.service.impl;

import com.lhg.file.entity.OAFile;
import com.lhg.file.mapper.OAFileMapper;
import com.lhg.file.service.OAFileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author fangzc
 * @date 2018/11/26 10:07
 */
@Service
public class OAFileServiceImpl implements OAFileService {

    @Resource
    private OAFileMapper oaFileMapper;

    @Override
    public int deleteById(String id) {
        return oaFileMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int saveSelective(OAFile record) {
        return oaFileMapper.insertSelective(record);
    }

    @Override
    public OAFile getById(String id) {
        return oaFileMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateSelectiveById(OAFile record) {
        return oaFileMapper.updateByPrimaryKeySelective(record);
    }
}
